package com.fancy.music.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "file.upload")
public class FileUploadConfig {

    /**
     * 基础路径
     */
    private String basePath = "D:/music-platform/uploads/";

    /**
     * 音频文件路径
     */
    private String audioPath = "audio/";

    /**
     * 封面图片路径
     */
    private String coverPath = "covers/";

    /**
     * 歌词文件路径
     */
    private String lyricPath = "lyrics/";

    /**
     * 允许的音频格式
     */
    private String audioFormats = "mp3,wav,flac,aac,ogg";

    /**
     * 允许的图片格式
     */
    private String imageFormats = "jpg,jpeg,png,webp";

    /**
     * 允许的歌词格式
     */
    private String lyricFormats = "lrc,txt";
}
